<%--
  Created by IntelliJ IDEA.
  User: 1daon
  Date: 2019/1/18
  Time: 9:43 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<html>
<head>
    <jsp:include page="../common/backend_head.jsp"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header form-search_warp">
            <form class="layui-form" action="/sys/sysLog/operate.page" method="get">
                <div class="layui-inline">
                    <input type="text" name="search" class="layui-input" placeholder="创建时间" value="${search}"
                           id="search" style="width: 295px;">
                </div>
                <button class="layui-btn">
                    <i class="iconfont icon-search"></i> 搜索
                </button>
            </form>
        </div>
        <div class="layui-tab-content">
            <table class="layui-table nowrap">
                <thead>
                <tr>
                    <th class="txt-c" width="30">序号</th>
                    <th>操作名称</th>
                    <th class="txt-c" width="70">请求类型</th>
                    <th class="txt-c" width="100">访问IP</th>
                    <th class="txt-c" width="80">操作人</th>
                    <th class="txt-c" width="110">创建时间</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${operateList.list}" var="item" varStatus="s">
                    <tr title="${item.logId}:${item.logUrl}">
                        <td class="txt-c">${s.count}</td>
                        <td>${item.logUrl}</td>
                        <td class="txt-c">${item.logMethod}</td>
                        <td class="txt-c">${item.logIp}</td>
                        <td class="txt-c">${item.logUserName}</td>
                        <td class="txt-c">
                            <fmt:formatDate type="both"
                                                          dateStyle="medium" timeStyle="medium"
                                                          value="${item.createdAt}" />
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <div class="table-page" id="table-page">

                    <t:page page="${operateList}"></t:page>
            </div>
        </div>
    </div>
</div>
</body>
<jsp:include page="../common/backend_script.jsp"/>
</html>
